﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using HY_Model;

namespace HYWJ
{
    public partial class Form1 : Office2007Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //WindowShow ws = new WindowShow(this.Handle, 1, 1, this);
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            MianForm mf = new MianForm();
            mf.Show();
            this.Hide();
        }
       

        private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }
       
        #region 鼠标事件
        private void pictureBox1_MouseEnter(object sender, EventArgs e)
        {
            Image img = Image.FromFile(Application.StartupPath + @"\images\huozai2.jpg"); 
            pictureBox1.Image=img;
        }

        private void pictureBox1_MouseLeave(object sender, EventArgs e)
        {
            Image img = Image.FromFile(Application.StartupPath + @"\images\huozai.jpg");
            pictureBox1.Image = img;
        }
        private void pictureBox2_MouseEnter(object sender, EventArgs e)
        {
            Image img = Image.FromFile(Application.StartupPath + @"\images\hongshui2.jpg");
            pictureBox2.Image = img;
        }

        private void pictureBox2_MouseLeave(object sender, EventArgs e)
        {
            Image img = Image.FromFile(Application.StartupPath + @"\images\hongshui1.jpg");
            pictureBox2.Image = img;
        }
        private void pictureBox3_MouseEnter(object sender, EventArgs e)
        {
            Image img = Image.FromFile(Application.StartupPath + @"\images\dizhen2.jpg");
            pictureBox3.Image = img;
        }

        private void pictureBox3_MouseLeave(object sender, EventArgs e)
        {
            Image img = Image.FromFile(Application.StartupPath + @"\images\dizhen1.jpg");
            pictureBox3.Image = img;
        }
        private void pictureBox4_MouseEnter(object sender, EventArgs e)
        {
            Image img = Image.FromFile(Application.StartupPath + @"\images\hehua2.jpg");
            pictureBox4.Image = img;
        }

        private void pictureBox4_MouseLeave(object sender, EventArgs e)
        {
            Image img = Image.FromFile(Application.StartupPath + @"\images\hehua1.jpg");
            pictureBox4.Image = img;
        }
#endregion
    }
}
